<%@page import="com.limao.CacheManager.OrderInfo"%>
<%@page import="com.limao.Tencent.tenpay.pay.Tenpay_ask_Provider"%>
<%

%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%  
    //微信支付
    System.out.println("微信支付通知 0……");
    Map<String,String> params = new HashMap<String,String>();  
    
    
    String inputLine;
	String notityXml = "";
	String resXml = "";

	try 
	{
		while ((inputLine = request.getReader().readLine()) != null) 
		{
			notityXml += inputLine;
		}
		request.getReader().close();
	} catch (Exception e) 
	{
		e.printStackTrace();
	}
    System.out.println("微信支付通知 inputLine……"+notityXml); 
    params=Tenpay_ask_Provider.decodeXml(notityXml);
    System.out.println("微信支付通知 1……");
     if(OrderInfo.OnlinePay_return("1",params)){//验证成功
		//请在这里加上商户的业务逻辑程序代码
		//——请根据您的业务逻辑来编写程序（以下代码仅作参考）——
		out.println("Success");	//请不要修改或删除
		System.out.println("微信支付通知2……success");
	 }else{//验证失败
		out.println("fail");
		System.out.println("微信支付通知 2……success");
	 }

%>
